<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
  
  <!-- This is the start (home) page of the application. It just displays
  a message. Not very exciting... improvement is possible. -->
  <h:head>
    <title>IGNORED</title>
  </h:head>
  <h:body>
    <ui:composition template="/templates/forel_layout.xhtml">
      <ui:define name="content">
          
          <h2>#{strings.foresp_h1}</h2>
          <p>#{strings.foresp_p1}</p>
          
          <h3>Foreslåtte forelesninger:</h3>

          <h:dataTable value="#{forelesninglistbean.forelesninger}" var="forelesning"
                     styleClass="data" columnClasses="pk,name,name,name,name">
          <h:column class="pk">
            <f:facet name="header">#{strings.forelesning_id}</f:facet>
            #{forelesning.forelesningNr}
          </h:column>

          <h:column>
            <f:facet name="header">#{strings.forelesning_navn}</f:facet>
            <h:outputText>
              <f:param name="forelesningId" value="#{forelesning.navn}"/>
              #{forelesning.navn}
           </h:outputText>
          </h:column>

             <h:column>
            <f:facet name="header">#{strings.forelesning_tema}</f:facet>
            <h:outputText>
              <f:param name="forelesningId" value="#{forelesning.tema}"/>
              #{forelesning.tema}
            </h:outputText>
          </h:column>
             
             <h:column>
            <f:facet name="header">#{strings.forelesning_dato}</f:facet>
            <h:outputText>
              <f:param name="forelesningId" value="#{forelesning.dato}"/>
              #{forelesning.dato}
            </h:outputText>
          </h:column>
             
             <h:column>
            <f:facet name="header">#{strings.forelesning_kommentar}</f:facet>
            <h:outputText>
              <f:param name="forelesningId" value="#{forelesning.kommentar}"/>
              #{forelesning.kommentar}
             </h:outputText>
          </h:column>
    </h:dataTable>      
      </ui:define>  
    </ui:composition>
  </h:body>
</html>